home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / umich / utils / gemfut15.lzh / AESUTOB2.C < prev    next >
C/C++ Source or Header  |  1989-08-26  |  1KB  |  42 lines

  1.  
  2. /**************************************************************************
  3.  *
  4.  * AESFAST PD utilties.
  5.  *
  6.  *  Object-related utilities 2...
  7.  *    obj_flchange
  8.  *    obj_stchange
  9.  *************************************************************************/
  10.  
  11. #include <gemfast.h>
  12.  
  13. /*-------------------------------------------------------------------------
  14.  * obj_xywh - Return object's GRECT, not adjusted to screen coordinates.
  15.  *-----------------------------------------------------------------------*/
  16.  
  17. void
  18. obj_xywh(ptree, object, prect)
  19.     OBJECT  *ptree;
  20.     int     object;
  21.     GRECT   *prect;
  22. {
  23.     rc_copy( &(ptree[object].ob_x), prect );
  24. }
  25.  
  26.  
  27. /*-------------------------------------------------------------------------
  28.  * obj_offxywh - Return object's GRECT, adjusted to screen coordinates.
  29.  *-----------------------------------------------------------------------*/
  30.  
  31. void
  32. obj_offxywh(ptree, object, prect)
  33.     OBJECT  *ptree;
  34.     int     object;
  35.     GRECT   *prect;
  36. {
  37.     rc_copy( &(ptree[object].ob_x), prect );
  38.     objc_offset(ptree, object, &(prect->g_x), &(prect->g_y));
  39. }
  40.  
  41.  
  42.